﻿using System;
namespace MN.Model
{
    public class NoticeModel
    {
        //数据表字段名常量
        public const string PKID = "pkid";
        public const string USERID = "userId";
        public const string TITLE = "title";
        public const string CONTENT = "content";
        public const string CREATETIME = "createTime";
        public const string DATAEXIST = "dataExist";
        public const string _ALLKEYS = ",pkid,userid,title,content,createtime,dataexist,";
        //内部成员变量 
        private int pkid;
        private string userId;
        private string title;
        private string content;
        private string createTime;
        private bool dataExist;
        /// <summary>
        /// 默认构造函数
        /// </summary>
        public NoticeModel() { }
        /// <summary>
        /// 初始化成员变量的构造函数
        /// </summary>
        public NoticeModel(int pkid, string userId, string title, string content, string createTime, bool dataExist)
        {
            this.pkid = pkid;
            this.userId = userId;
            this.title = title;
            this.content = content;
            this.createTime = createTime;
            this.dataExist = dataExist;
        }
        //属性 
        public int Pkid { get { return pkid; } set { pkid = value; } }
        public string UserId { get { return userId; } set { userId = value; } }
        public string Title { get { return title; } set { title = value; } }
        public string Content { get { return content; } set { content = value; } }
        public string CreateTime { get { return createTime; } set { createTime = value; } }
        public bool DataExist { get { return dataExist; } set { dataExist = value; } }
    }
}
